package com.pangda.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jdom2.Text;

/**
 * <p>
 * 操作日志表
 * </p>
 *
 * @author xjy
 * @since 2024-06-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("operation_log")
@ApiModel(value = "OperationLog对象", description = "操作日志表")
public class OperationLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "oper_id", type = IdType.AUTO)
    private Integer operId;

    @ApiModelProperty(value = "业务类型")
    @TableField("business_type")
    private Integer businessType;

    @ApiModelProperty(value = "业务类型集合")
    @TableField("businessTypes")
    private String businessTypes;

    @ApiModelProperty(value = "创建者ID")
    @TableField("createBy")
    private Integer createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("createTime")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "部门名称")
    @TableField("deptName")
    private String deptName;

    @ApiModelProperty(value = "错误信息")
    @TableField("errorMsg")
    private String errorMsg;

    @ApiModelProperty(value = "JSON结果数据")
    @TableField("jsonResult")
    private String jsonResult;

    @ApiModelProperty(value = "执行方法全路径")
    @TableField("method")
    private String method;


    @ApiModelProperty(value = "操作者IP")
    @TableField("operIp")
    private String operIp;

    @ApiModelProperty(value = "操作地点")
    @TableField("operLocation")
    private String operLocation;

    @ApiModelProperty(value = "操作者姓名")
    @TableField("operName")
    private String operName;

    @ApiModelProperty(value = "操作参数")
    @TableField("operParam")
    private String operParam;

    @ApiModelProperty(value = "操作时间")
    @TableField("operTime")
    private LocalDateTime operTime;

    @ApiModelProperty(value = "操作URL")
    @TableField("operUrl")
    private String operUrl;

    @ApiModelProperty(value = "操作类型")
    @TableField("operatorType")
    private Integer operatorType;

    @ApiModelProperty(value = "请求方法")
    @TableField("requestMethod")
    private String requestMethod;

    @ApiModelProperty(value = "状态")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "操作标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "更新者ID")
    @TableField("updateBy")
    private Integer updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("updateTime")
    private LocalDateTime updateTime;


}
